#!/bin/bash
duankou=`ss -lntp|grep 80|wc -l`
if [ $duankou -ne 1 ];then
    echo "Nginx error"
else
    echo "Nginx 正常"
fi
[ro